package cn.e4j.modular.api.service;


import cn.e4j.core.dto.impl.Dto;
import cn.e4j.core.util.InvokeUtil;
import cn.e4j.modular.api.mapper.BbJcxmMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class BbJcxmService {

    @Autowired
    BbJcxmMapper bbJcxmMapper;

    @Transactional(readOnly = true)
    public List<Dto> getListDataForProduct(Dto inDto) {
        //return bbJcxmMapper.getListDataForProduct(inDto);
        return InvokeUtil.invokeBeanMethod("bbJcxmMapper,getListDataForProduct",inDto);
    }

    @Transactional(readOnly = true)
    public List<Dto> getListDataForIssue(Dto inDto) {
        //return bbJcxmMapper.getListDataForIssue(inDto);
        return InvokeUtil.invokeBeanMethod("bbJcxmMapper,getListDataForIssue",inDto);
    }
}
